import { IUserAccount } from '@/shared/model/user-account.model';
import { IContentType } from '@/shared/model/content-type.model';

export interface IContentInfo {
  id?: number;
  contentAuthor?: string | null;
  contentText?: string | null;
  contentImg?: string | null;
  contentTime?: Date | null;
  contentPraiseCount?: number | null;
  contentFavorateCount?: number | null;
  contentImgLabel?: string | null;
  account?: IUserAccount | null;
  contentType?: IContentType | null;
}

export class ContentInfo implements IContentInfo {
  constructor(
    public id?: number,
    public contentAuthor?: string | null,
    public contentText?: string | null,
    public contentImg?: string | null,
    public contentTime?: Date | null,
    public contentPraiseCount?: number | null,
    public contentFavorateCount?: number | null,
    public contentImgLabel?: string | null,
    public account?: IUserAccount | null,
    public contentType?: IContentType | null
  ) {}
}
